$OpenBSD: patch-src_amule_h,v 1.1 2016/11/23 09:56:21 dcoppa Exp $

commit 5cf7ef9a7dcff2776d9ebc8bb8337e7e3203e6ab
Author: upstream svn <svn@amule.org>
Date:   Mon Nov 21 11:10:27 2016 +0000

Add a routine to set file name conversion for amuled, which is based
on wxAppConsole: fix sharing directories with non-ASCII names with
aMule daemon.

--- src/amule.h.orig	Fri Sep 16 09:55:07 2016
+++ src/amule.h	Wed Nov 23 09:06:27 2016
@@ -553,6 +553,13 @@ class CamuleDaemonApp : public CamuleApp (private)
 	int OnExit();
 
 	virtual int InitGui(bool geometry_enable, wxString &geometry_string);
+	// The GTK wxApps sets its file name conversion properly
+	// in wxApp::Initialize(), while wxAppConsole::Initialize()
+	// does not, leaving wxConvFile being set to wxConvLibc. File
+	// name conversion should be set otherwise amuled will abort to
+	// handle non-ASCII file names which monolithic amule can handle.
+	// This function are overrided to perform this.
+	virtual bool Initialize(int& argc_, wxChar **argv_);
 
 #ifdef AMULED_APPTRAITS
 	struct sigaction m_oldSignalChildAction;
